package com.codesuc.aichat.aiAgent.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * @Author: ZhangGongMing
 * @CreateTime: 2025/9/23 21:05
 * @description: AI 服务配置类
 * @Version: 1.0
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "ai-agent")
@PropertySource("classpath:ai-config.properties")
public class AIConfig {

    /**
     * 服务提供商，默认通义
     */
    private String provider;

    private Qiniu qiniu = new Qiniu();

    private TongYi tongyi = new TongYi();

    @Data
    public static class Qiniu {
        private String apiKey;
        private String chatUrl;
        private String asrUrl;
        private String ttsUrl;
        private String model;
    }

    @Data
    public static class TongYi {
        private String apiKey;
        private String chatUrl;

        /**
         * 对话模型
         */
        private String chatModel;

        /**
         * 语音识别模型
         */
        private String asrModel;

        /**
         * 语音合成模型
         */
        private String ttsModel;

    }

}